import { reqSearchByTag } from '@/apis/passage'
import { defineStore } from 'pinia'

//创建用户相关的小仓库
const homeArticleStore = defineStore('Article', {
  state: () => {
    return {
      articleList: [],
      tag: 'all'
    }
  },
  actions: {
    // 文章列表设置
    setArticleList(articleList) {
      this.articleList = articleList
    },
    async setTag(tag) {
      this.tag = tag
    }
  },
  getters: {

  }
})

//对外暴露获取小仓库方法
export default homeArticleStore